"""
	在D盘创建文件C.txt 写入Hello
	在D盘创建文件D.txt 写入World
	在D盘创建文件E.txt 写入从C.txt和D.txt中读取到的内容
"""

with open(r"D:\C.txt","x") as c_file:
    c_file.write("Hello")

with open(r"D:\D.txt","x") as d_file:
    d_file.write("World")
    
lst = []
with open(r"D:\C.txt","r") as c_file:
    content = c_file.readlines()
    lst.append(content[0])

with open(r"D:\D.txt","r") as d_file:
    content = d_file.readlines()
    lst.append(content[0])

with open(r"D:\E.txt","x") as e_file:
    e_file.write(str(lst))
    